<%@ include file="/common/taglibs.jsp"%>
<head>
	<c:set var="noToolBar" value="true" scope="request"/><%-- 不需要工具栏 --%>
</head>
<div class="red"><fmt:message key="userDefinedRegionSelector.title.tip"/></div>
<div class="top clearfix">
	<ul class="tab">
		<li class="curr"><span><fmt:message key="regionItemList.title"/></span></li>
	</ul>
</div>
<div class="data">
	<display:table name="${regionList}" cellspacing="0" cellpadding="0" uid="region" class="list_table" export="false" requestURI="">
		<display:column style="width:100px;" sortable="false" decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="region.regionName">
			<b><a href="javascript:void(0)"	onclick='selectRegion(${region.regionId})'>${region.regionName}</a></b>
			
			<input type="hidden" id="regionName_${region.regionId}" value="${region.regionName}"/>	
		</display:column>
	</display:table>
</div>
<script type="text/javascript">
var callbackFunc = eval("parent.${param.selectorId}CallbackFunc");
var multiple = eval("parent.${param.selectorId}Multiple");

$j(document).ready(function () {
	highlightTableRows("region");
});

//选择地区
function selectRegion(regionId){
	var region = {"id":regionId,"name":$('regionName_'+regionId).value}
	callbackFunc.call(this,region);
}
</script>